<script>
  window.G_API = '<?= get_root_url() ?>/api';
  window.G_ROOT = '<?= get_root_url() ?>';
  window.G_USER = <?php

  echo get_user_id() ? json_encode(get_user(null, ['include' => ['is_following']])) : 'null' ?>;
  window.G_OPTIONS = <?= json_encode(get_options()) ?>;
</script>
<div id="live2d-landlord">
  <div class="live2d-message" style="opacity:0"></div>
  <canvas id="live2d" width="280" height="250" class="live2d"></canvas>
  <div class="live2d-hide-button">隐藏</div>
</div>
<?php if ($NODE_ENV === 'production'): ?>
<script src="<?= get_theme_static_url() ?>/index.4c2ca968.js"></script>
<!- <script src="<?= get_theme_static_url() ?>/effect.js"></script> ->


<?php else: ?>
<script src="http://localhost:8080/index.js"></script>
<?php endif; ?>
</div>
